package com.tianya.common.model;

import java.util.Date;
/**
 * User entity.
 * 
 * @author MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
public class User implements java.io.Serializable {

	// Fields
	private Integer id;//用户ID
	private String code;//用户CODE
	private String name;//用户姓名
	private String psw;//用户密码
	private int type;//用户类型
	private int flag;//用户状态
	private int opid;//操作者ID
	private Date upymd;//更新时间
	

	// Constructors
	/** default constructor */
	public User() {
	}
	
	//用户ID取得
	public Integer getId() {
		return id;
	}
	//用户ID设置
	public void setId(Integer id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getPsw() {
		return psw;
	}

	public void setPsw(String psw) {
		this.psw = psw;
	}
	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}


	public int getOpid() {
		return opid;
	}

	public void setOpid(int opid) {
		this.opid = opid;
	}


	public Date getUpymd() {
		return upymd;
	}

	public void setUpymd(Date upymd) {
		this.upymd = upymd;
	}
}